<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="ISO-8859-1"/>

    <xsl:template match="/PLANETES">
        <HTML>
        .
        .
        .
                <TABLE BORDER="2">
                    <TR>
                        <TD>Nom</TD>
                        <TD>Masse</TD>
                        <TD>Rayon</TD>
                        <TD>Jour</TD>
                    </TR>
                    <xsl:apply-templates/>
                </TABLE>
            </BODY>
        </HTML>
    </xsl:template>
    
    <xsl:template match="PLANETE">
       <xsl:for-each select="/PLANETES/*[.=current()]">
       <TR>
          <TD><xsl:value-of select="NOM"/></TD>
          <TD><xsl:apply-templates select="MASSE"/></TD>
          <TD><xsl:apply-templates select="RAYON"/></TD>
          <TD><xsl:apply-templates select="JOUR"/></TD>
       </TR>
       </xsl:for-each>
   </xsl:template>
    
    <xsl:template match="MASSE">
        <xsl:value-of select="."/>
        <xsl:text> </xsl:text>
        <xsl:value-of select="@UNITE"/>
    </xsl:template>
        .
        .
        .
    <xsl:template match="JOUR">
        <xsl:value-of select="."/>
        <xsl:text> </xsl:text>
        <xsl:value-of select="@UNITE"/>
    </xsl:template>
    
</xsl:stylesheet>
